package com.example.demo.mongo;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * *  Author:zlf
 * *  2021/3/3 9:53
 **/

@Document(collection = "User")
public class User {
    /*
    用户id：
    */
    @Field("id")
    private String id;

    /*
    用户名
    */
    @Field("userName")
    private String userName;
    /*
    性别
     */
    @Field("sex")
    private String sex;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


}